#include <gtkmm/main.h>
#include <gtkmm.h>
#include <iostream>
#include <vector>


#include "GUIThread.h"
#include "Viewport.h"
#include "Renderer.h"
#include "Input_Handler.h"


using namespace std;

int main(int argc, char** argv)
{
    Gtk::Main kit(argc, argv);
    Viewport *v = new Viewport();
    GUIThread::get_instance()->start();
    Renderer::get_instance()->start();

    Input_Handler::get_instance()->input_handler_start();

    GUIThread::get_instance()->join();
    v->keep_looping = false;
    Renderer::get_instance()->join();
    v->destroy();
    return 0;
}
